Global Index
HTML5 JS API Index > Web Workers Tutorials & Specs

WorkerNavigator

Implements NavigatorID, NavigatorLanguage, NavigatorOnLine.

Properties
DOMString
appCodeName
Must return the string "Mozilla".
DOMString
appName
Must return either the string "Netscape" or the full name of the browser, e.g. "Mellblom Browsernator".
DOMString
appVersion
Must return either the string "4.0" or a string representing the version of the browser in detail, e.g. "1.0 (VMS; en-US) Mellblomenator/9000".
DOMString?
language
Must return a valid BCP 47 language tag representing either a plausible language or the user's most preferred language. [BCP47]
DOMString[]
languages
Must return a read only array of valid BCP 47 language tags representing either one or more plausible languages, or the user's preferred languages, ordered by preference with the most preferred language first. The same object must be returned until the user agent needs to return different values, or values in a different order.
boolean
onLine
The navigator.onLine attribute must return false if the user agent will not contact the network when the user follows links or when a script requests a remote page (or knows that such an attempt would fail), and must return true otherwise.
DOMString
platform
Must return either the empty string or a string representing the platform on which the browser is executing, e.g. "MacIntel", "Win32", "FreeBSD i386", "WebTV OS".
DOMString
product
Must return the string "Gecko".
DOMString
userAgent
Must return the string used for the value of the "User-Agent" header in HTTP requests, or the empty string if no such header is ever sent.
Operations
boolean
taintEnabled()
Must return false.
Referenced by
WorkerGlobalScopenavigator